package org.dtrd.modules.doctor.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;


/**
 * <p>
 * 医生团队和医生的关系表
 * </p>
 *
 * @author QR
 * @since 2021-11-30 16:48:38
 */
@Getter
@Setter
@TableName("dtrd_rl_doctor_team_doctor")
public class DtrdRlDoctorTeamDoctor {

    @TableId(value = "data_id", type = IdType.AUTO)
    private Integer dataId;

    /**
     * 团队ID
     */
    private Integer teamId;

    /**
     * 医生ID
     */
    private Integer doctorId;

    /**
     * 管理者ID
     */
    private Integer manageDoctorId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableLogic
    private Integer isDel;

    public DtrdRlDoctorTeamDoctor init() {
        isDel = 0;
        createTime = new Date();
        return this;
    }

    public DtrdRlDoctorTeamDoctor() {}

    public DtrdRlDoctorTeamDoctor(Integer teamId, Integer doctorId, Integer manageDoctorId) {
        this.teamId = teamId;
        this.doctorId = doctorId;
        this.manageDoctorId = manageDoctorId;
    }

}
